<?php
require("class.Smarty/Smarty.class.php");

class Template extends Smarty
{
	public function __construct()
	{
		parent::__construct();
			
		$this->template_dir = 'templates/';
		$this->compile_dir = 'templates_c/';
		$this->cache_dir = 'cache/';
		$this->config_dir = 'configs/';
		
		$this->debugging = false;
		$this->caching = false;
		$this->cache_lifetime = 120;
	}

	static public function instance()
	{
		static $tpl;
		
		if(!isset($tpl))
		{
			$tpl = new Template();
		}
		
		return $tpl;
	}
}
?>
